using System;
using System.Data;

namespace FreeFlow.Administration
{
	/// <summary>
	/// A flag that a folder is waiting for.
	/// </summary>
	public class Flag
	{
		internal Flag(IDataReader reader)
		{
      actionName = reader["eActionName"].ToString();
      flagFolderId = reader["eFlagFolder"].ToString();
      flagName = reader["eFlagName"].ToString();
		}

    private string actionName;
    /// <summary>
    /// Gets the name of the action that will be triggered by this flag.
    /// </summary>
    public string ActionName
    {
      get
      {
        return actionName;
      }
    }

    private string flagFolderId;
    /// <summary>
    /// Gets the ID of the folder that will raise the flag.
    /// </summary>
    public string FlagFolderId
    {
      get
      {
        return flagFolderId;
      }
    }

    private string flagName;
    /// <summary>
    /// Gets the name of the flag that will trigger the action.
    /// </summary>
    public string FlagName
    {
      get
      {
        return flagName;
      }
    }
	}
}
